#include <bits/stdc++.h>

#define ll long long
#define YES cout << "Yes" << endl
#define NO cout << "No" << endl
const int INF = 1e9;
using namespace std;
/*思考
发现偶数永远不行，奇数只需要先按小到大输出奇数再输出偶数即可
*/
void solve()
{
    int n=0;
    cin >> n;
    if(n%2==0)
    {
        cout << -1 << endl;
        return;
    }
    for(int i=1; i<=n; i++)
    {
        if(i%2)
        {
            cout << i << " ";
        }
    }
    for(int i=2; i<n; i++)
    {
        if(i%2==0)
        {
            cout << i << " ";
        }
    }
    cout << endl;

}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    int t = 0;
    cin >> t;
    while (t--)
        solve();
    return 0;
}